<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<load href="__CSS__/footer.css" />
	<load href="__CSS__/Login.css" />
	<load href="__JS__/jQuery/jquery.js" />
<load href="__JS__/jQuery/jquery.form.js" />
<script type="text/JavaScript">
$(function(){
    $('#form1').ajaxForm({
        //beforeSubmit:  function(){alert("before");},  // pre-submit callback
        success:       complete,  // post-submit callback
        error:function(){alert("error");},
        dataType: 'json'
    });
    
    function complete(data){
        if (data.status==1)
        {
        	if(data.data!=0)
        		window.location=data.data;
        	else
        		window.location=window.location.href;
        }else{
            $('#result').html(data.info).show();
        }
    }
});
</script>
<title>ISit账户</title> 
</head>

<body>
<if condition="$role eq '访客'">

			<form id='form1' method="post" action="__APP__/Auth/auth">
			<br /><br  /><br  />
			登陆名<input type="text" name="no" maxlength="20"  /><br />
			密码<input type="password" name="password" maxlength="20" /><br />
			记住我<input type="checkbox" name="remember" >
			<input type=hidden value={$url} name=url>
			 <input type="submit" name="button" id="button" value="登陆"/>
			</form>

<else/>	
	<div align="center">
	<h3>已登录：{$role},{$no},{$name} <a href="__APP__/Auth/logout">注销</a></h3>
	<h4><a href="__APP__/index/index">访问主页</a>|<a href="javascript:history.back()">返回登陆前界面</a></h4>
	</div>
</if>
<layout name="Auth:footer" />
</body>
</html>
